import 'package:flutter/material.dart';
import 'package:ytbusiness/config/yt_theme.dart';
import 'package:ytbusiness/utils/screen_adaptation.dart';
import 'package:ytbusiness/widgets/widgets.dart';

//选择完成
class SelectDone extends StatefulWidget {

  final Map<String,dynamic> arguments;

  const SelectDone({Key key, this.arguments}) : super(key: key);
  @override
  _SelectDoneState createState() => _SelectDoneState();
}

class _SelectDoneState extends State<SelectDone> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: customAppBar(context,title:"配件询价"),
      body: SingleChildScrollView(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            SizedBox(
              height: setWidth(33),
            ),
           Row(
             mainAxisAlignment: MainAxisAlignment.center,
             children: [
               Column(
                 crossAxisAlignment: CrossAxisAlignment.center,
                 children: [
                   Container(
                     width: setWidth(50),
                     height: setWidth(50),
                     child: Image.asset("assets/images/done.png",fit: BoxFit.cover,),
                   ),
                   SizedBox(
                     height: setWidth(13),
                   ),
                   Container(
                     child: Text("提交成功!",style: TextStyle(color: Color(0xff00C65F),fontSize: setSp(18),fontWeight: FontWeight.w500),),
                   )
                 ],
               )
             ],
           ),
            SizedBox(
              height: setWidth(43),
            ),
            Container(
              child: Text("恭喜您已成功选择10个配件,请耐心等待汽配商报价。",style: TextStyle(color: Color(0xff323232),fontSize: setSp(12)),),
            ),
            SizedBox(
              height: setWidth(80),
            ),
            Row(
              children: [
                Expanded(
                  child: GestureDetector(
                    behavior: HitTestBehavior.opaque,
                    onTap: (){
                      Navigator.pop(context);
                    },
                    child: Container(
                      margin: EdgeInsets.only(left: setWidth(15),right: setWidth(15)),
                      decoration: BoxDecoration(
                          color: YTTheme.theme,
                          borderRadius: BorderRadius.circular(3)
                      ),
                      alignment: Alignment.center,
                      padding: EdgeInsets.only(top: setWidth(15),bottom: setWidth(15)),
                      child: Text("确定",style: TextStyle(color: Colors.white,fontSize: setSp(15),fontWeight: FontWeight.w500),),
                    ),
                  ),
                )
              ],
            ),


          ],
        ),
      ),
    );
  }
}
